var windowName = "selectStyle";
$(function () {
    // onWindowShow(function () {
    // })
    // onWindowHide(function () {
    // })
    // console.log("index page is OK");
    var OrderList = new List();
    var Page = createVM("#Page", {
        //页面数据
        id: 0,
        pic: ""
    }, {
        //页面方法

        /**
         * 生命周期函数--监听页面加载
         */
        onLoad: function (options) {
            let id = getUrlData("id");
            this.id = id
            // getOrderInfo(this)
            getData(this)

        },
        selectPaper: function (e) {

            let id = this.id
            goto("/pic/Page/Wap/selectPaper.html?id=" + id)
        },
        selectBackPic: function (e) {
            let id = this.id
            goto("/pic/Page/Wap/selectBackPic.html?id=" + id)
        }

    })


    Page.onLoad()

})


function getData(_this) {
    let id = _this.id
    apiGet("/po/config", {id}, function (res) {
        console.log(res)
        let pic = res.d.pic
        _this.setData({pic})
    })
}
